import Vue from "vue";
import VueRouter from "vue-router";

// 登录组件
import Login from "../views/Login.vue";

// 首页组件
import Home from "../views/Home.vue";

Vue.use(VueRouter);

const routes = [
    {
        path: "/",
        name: "Login",
        component: Login,
        hidden: true
    },
    {
        path: '/home',
        name: 'Home',
        component: Home
    }
];

const router = new VueRouter({
    routes,
});

export default router;
